//
//  CZWaterflowLayout.h
//  nsj_iOS
//
//  Created by apple on 2017/1/17.
//  Copyright © 2017年 GCZ. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CZWaterflowLayout;

@protocol CZWaterflowLayoutDelegate <NSObject>
@required
- (CGFloat)waterflowLayout:(CZWaterflowLayout *)waterflowLayout heightForItemAtIndex:(NSUInteger)index itemWidth:(CGFloat)itemWidth;

@optional
- (CGFloat)columnCountInWaterflowLayout:(CZWaterflowLayout *)waterflowLayout;
- (CGFloat)columnMarginInWaterflowLayout:(CZWaterflowLayout *)waterflowLayout;
- (CGFloat)rowMarginInWaterflowLayout:(CZWaterflowLayout *)waterflowLayout;
- (UIEdgeInsets)edgeInsetsInWaterflowLayout:(CZWaterflowLayout *)waterflowLayout;
@end
@interface CZWaterflowLayout : UICollectionViewFlowLayout

/** 代理 */
@property (nonatomic, weak) id<CZWaterflowLayoutDelegate> delegate;
@end
